package com.java.performance.schema.Singleton;

/**
 * 
 * 设计模式：单例模式
 * 
 * @author zhenghui
 *
 */
public class Singleton {
	
	private static Singleton instance = new Singleton();
	
	public static Singleton getInstance(){
		return  instance;
	}
	 
	private Singleton(){
		System.out.println("hello 单例模式！");
	}

	
	public static void main(String[] args) {
		

		Singleton instance  = Singleton.getInstance();
		
		
		
	}

}
